package com.genexususa.eo.google.test.adgroup;

import com.genexususa.eo.google.connection.AdGroupManager;
import com.genexususa.eo.google.test.Constants;

public class ConsumeCreateAdGroups {

    public static void main(String[] args){

        String xml = "<GA_AdGroupCollection xmlns=\"L2TMediaDev_L2T1.51\">\n" +
                "                <GA_AdGroup xmlns=\"L2TMediaDev_L2T1.51\">\n" +
                "                               <Id>0</Id>\n" +
                "                               <AdGroupGxId>2288</AdGroupGxId>\n" +
                "                               <CampaignId>191893959</CampaignId>\n" +
                "                               <SubCampaignGxId>715</SubCampaignGxId>\n" +
                "                               <CampaignName/>\n" +
                "                               <Name>AdGroup #1</Name>\n" +
                "                               <Status>E</Status>\n" +
                "                               <Settings>\n" +
                "                               </Settings>\n" +
                "                               <BiddingStrategyConfiguration>\n" +
                "                                               <Bids>\n" +
                "                                                               <ManualCPC>\n" +
                "                                                                              <KeywordMaxCpc>5.00</KeywordMaxCpc>\n" +
                //"                                                                              <KeywordContentMaxCpc>5.00</KeywordContentMaxCpc>\n" +
                "                                                               </ManualCPC>\n" +
                "                                               </Bids>\n" +
                "                               </BiddingStrategyConfiguration>\n" +
                "                </GA_AdGroup>\n" +
                "</GA_AdGroupCollection>";

        AdGroupManager adm = new AdGroupManager();

        adm.SetClientId(Constants.testClient1);
        String res = adm.CreateAdGroup(xml);
        adm.Finalize();
        System.out.println(res);

    }
}
